﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace UFIDA.U9.Cust.SH.SHFastShipBP
{
	/// <summary>
	/// 销售价格 DTO :自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Name = "UFIDA.U9.Cust.SH.SHFastShipBP.PriceDTOData", Namespace = "http://www.UFIDA.org/EntityData",IsReference=true)]
	[Serializable]
	[KnownType("GetKnownTypes")]
	public partial class PriceDTOData : UFSoft.UBF.Business.DataTransObjectBase
	{
		public static IList<Type> GetKnownTypes()
        {
            IList<Type> knownTypes = new List<Type>();
                                                                                                                     
            knownTypes.Add(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict));
            return knownTypes;
        }
		/// <summary>
		/// Default Constructor
		/// </summary>
		public PriceDTOData()
		{
			initData();
		}
		private void initData()
		{
					ItemID= 0; 
							Price=0m; 
					ProductCost=0m; 
					MarkCost=0m; 
					TransportCost=0m; 
					StoreCost=0m; 
		
					CustomerID= 0; 
				

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
        internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
        {
			 initData();
        }
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        	        	        	        	        	        	        	        
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public PriceDTOData(  System.Int64 itemID  , System.Decimal price  , System.Decimal productCost  , System.Decimal markCost  , System.Decimal transportCost  , System.Decimal storeCost  , System.String priceType  , System.Int64 customerID  , System.String itemCode  )
		{
			initData();
			this.ItemID = itemID;
			this.Price = price;
			this.ProductCost = productCost;
			this.MarkCost = markCost;
			this.TransportCost = transportCost;
			this.StoreCost = storeCost;
			this.PriceType = priceType;
			this.CustomerID = customerID;
			this.ItemCode = itemCode;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 料品ID
		/// 销售价格.Misc.料品ID
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Int64 m_itemID ;
		public System.Int64 ItemID
		{
			get	
			{	
				return m_itemID ;
			}
			set	
			{	
				m_itemID = value ;	
			}
		}
			
		

		/// <summary>
		/// 单价
		/// 销售价格.Misc.单价
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_price ;
		public System.Decimal Price
		{
			get	
			{	
				return m_price ;
			}
			set	
			{	
				m_price = value ;	
			}
		}
			
		

		/// <summary>
		/// 产品费
		/// 销售价格.Misc.产品费
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_productCost ;
		public System.Decimal ProductCost
		{
			get	
			{	
				return m_productCost ;
			}
			set	
			{	
				m_productCost = value ;	
			}
		}
			
		

		/// <summary>
		/// 品牌费
		/// 销售价格.Misc.品牌费
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_markCost ;
		public System.Decimal MarkCost
		{
			get	
			{	
				return m_markCost ;
			}
			set	
			{	
				m_markCost = value ;	
			}
		}
			
		

		/// <summary>
		/// 物流费
		/// 销售价格.Misc.物流费
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_transportCost ;
		public System.Decimal TransportCost
		{
			get	
			{	
				return m_transportCost ;
			}
			set	
			{	
				m_transportCost = value ;	
			}
		}
			
		

		/// <summary>
		/// 仓储费
		/// 销售价格.Misc.仓储费
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_storeCost ;
		public System.Decimal StoreCost
		{
			get	
			{	
				return m_storeCost ;
			}
			set	
			{	
				m_storeCost = value ;	
			}
		}
			
		

		/// <summary>
		/// 正特价
		/// 销售价格.Misc.正特价
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_priceType ;
		public System.String PriceType
		{
			get	
			{	
				return m_priceType ;
			}
			set	
			{	
				m_priceType = value ;	
			}
		}
			
		

		/// <summary>
		/// 客户ID
		/// 销售价格.Misc.客户ID
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Int64 m_customerID ;
		public System.Int64 CustomerID
		{
			get	
			{	
				return m_customerID ;
			}
			set	
			{	
				m_customerID = value ;	
			}
		}
			
		

		/// <summary>
		/// 料号
		/// 销售价格.Misc.料号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_itemCode ;
		public System.String ItemCode
		{
			get	
			{	
				return m_itemCode ;
			}
			set	
			{	
				m_itemCode = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																		
		#endregion 
	} 	
}

	
